# -*- mode: python ; coding: utf-8 -*-

from PyInstaller.utils.hooks import copy_metadata

datas = [('static', 'static'),
        ('templates', 'templates')]   
datas += copy_metadata('sentence_transformers', recursive=True)
a = Analysis(
    ['app.py'],
    pathex=['.', '../Layout Parser/', '../LLM_APIs/Spark_API', '../LLM_APIs/Qwen_API', '../LLM_APIs/GPT_API', '../LLM_APIs/Local_API', '../finetune encoder'],
    binaries=[],
    datas=datas,
    hiddenimports=['xlrd'],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
    name='prototype',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=False,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon='logo.ico',
)
coll = COLLECT(
    exe,
    a.binaries,
    a.datas,
    strip=False,
    upx=False,
    upx_exclude=[],
    name='prototype',
)
